package LogicSide;

import DBside.JDBCConnection;
/*
 * holds data about user and it's session, like jdbcconnection
 */
public class Session {
private JDBCConnection con;
private int user_id;
private String msg="";

public Session() {
	this.con=null;
	this.user_id=0;
}
public Session(JDBCConnection con, int user_id)
{
	this.con=con;
	this.user_id=user_id;
}
public void setCon(JDBCConnection con) {
	this.con = con;
}
public void setUser_id(int user_id) {
	this.user_id = user_id;
}
public void setMsg(String msg) {
	this.msg = msg;
}
public JDBCConnection getCon() {
	return con;
}
public int getUser_id() {
	return user_id;
}
public String getMsg() {
	return msg;
}
}
